package com.ssyt.blog.core.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssyt.blog.core.sys.dao.CategoryDao;
import com.ssyt.blog.core.sys.entity.Category;

@Service
public class CategoryService {
	@Autowired
	private CategoryDao categoryDao;

	public void categoryInfoDelete(Integer id) {
		categoryDao.categoryInfoDelete(id);
	}

	public List<Category> getCategory(Integer userId) {
		return categoryDao.getCategory(userId);
	}

}
